export function fmtDate(dateOrTimestamp) {
	let date = ""
	if (typeof(dateOrTimestamp) == "number"){
		date = new Date(dateOrTimestamp*1000);
	}else {
		date = new Date(dateOrTimestamp);
	}
	return `${date.getFullYear()}-${date.getMonth()+1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
}
